/*    */ package com.feeyin.radar.sys.dao.impl;
/*    */ 
/*    */ import com.feeyin.radar.sys.dao.DataDictionaryDAO;
/*    */ import com.feeyin.radar.sys.model.DataDictionary;
/*    */ import java.util.List;
/*    */ import org.springframework.orm.ibatis.SqlMapClientTemplate;
/*    */ import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
/*    */ 
/*    */ public class DataDictionaryDAOImpl extends SqlMapClientDaoSupport
/*    */   implements DataDictionaryDAO
/*    */ {
/*    */   public List getDataDictionarysByRecordType(String recordType)
/*    */   {
/* 19 */     return getSqlMapClientTemplate().queryForList("getDataDictionarysByRecordType", recordType);
/*    */   }
/*    */ 
/*    */   public DataDictionary getDataDictionary(Integer id) {
/* 23 */     return (DataDictionary)getSqlMapClientTemplate().queryForObject("getDataDictionary", id);
/*    */   }
/*    */ 
/*    */   public DataDictionary getDataDictionaryByRecordCode(String recordCode) {
/* 27 */     return (DataDictionary)getSqlMapClientTemplate().queryForObject("getDataDictionaryByRecordCode", recordCode);
/*    */   }
/*    */ 
/*    */   public boolean updateDataDictionary(DataDictionary dataDictionary) {
/* 31 */     Integer result = Integer.valueOf(getSqlMapClientTemplate().update("updateDataDictionary", dataDictionary));
/* 32 */     return result != null;
/*    */   }
/*    */ 
/*    */   public boolean updateDataDictionaryStatus(DataDictionary dataDictionary)
/*    */   {
/* 37 */     Integer result = Integer.valueOf(getSqlMapClientTemplate().update("updateDataDictionaryStatus", dataDictionary));
/* 38 */     return result != null;
/*    */   }
/*    */ 
/*    */   public boolean updateDataDictionaryStatusByRecordType(String recordType)
/*    */   {
/* 43 */     Integer result = Integer.valueOf(getSqlMapClientTemplate().update("updateDataDictionaryStatusByRecordType", recordType));
/* 44 */     return result != null;
/*    */   }
/*    */ }

/* Location:           C:\Users\e547415\MyProject\rone\WEB-INF\classes\
 * Qualified Name:     com.feeyin.radar.sys.dao.impl.DataDictionaryDAOImpl
 * JD-Core Version:    0.6.0
 */